﻿using MESProWebApi.Core;

namespace MESProWebApi.Application
{
    /// <summary>
    /// 登录并获取资源
    /// </summary>
    public class LoginService : IDynamicApiController
    {
        private readonly ISystemService _systemService;
        public LoginService(ISystemService systemService)
        {
            _systemService = systemService;
        }

        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            var db = DbContext.Instance.GetConnectionScope("Default");//线程安全
           // db.Queryable<>
            return _systemService.GetDescription();
        }
    }
}